package com.sinothk.special.buyer.userblog.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 个人博客
 * @Author: Liangyt
 * @Date: 2022-03-30
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "UserBlogDTO对象", description = "个人博客")
public class UserBlogDTO extends UserBlog implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名")
    private String realname;
    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;
    /**
     * 生日
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;
    /**
     * 性别(0-默认未知,1-男,2-女)
     */
    @ApiModelProperty(value = "性别(0-默认未知,1-男,2-女)")
    private Integer sex;
    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    private Double locLat;
    /**
     * 经度
     */
    @ApiModelProperty(value = "经度")
    private Double locLng;
    /**
     * 登录时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "登录时间")
    private Date loginTime;

    /**
     * vip等级:0普通，1，2，3
     */
    @ApiModelProperty(value = "vip等级:0普通，1，2，3")
    private Integer vipLevel;

    /**
     * 最新一条博客
     */
    @ApiModelProperty(value = "最新一条博客")
    private String blogLatestJson;

    @ApiModelProperty(value = "访问者数")
    private int visitorNum;

    @ApiModelProperty(value = "收藏者数")
    private int collectorNum;

}
